package com.jet.member.domain.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class MemberLevelDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotBlank(message = "会员等级名称不能为空")
    private String name;

    @NotNull(message = "会员等级积分规则不能为空")
    private Long startIntegral;

    @NotNull(message = "会员等级积分规则不能为空")
    private Long endIntegral;

    private Long discount;

    @NotBlank(message = "会员等级颜色不能为空")
    private String color;
}
